package com.itsitio.dbimporter.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import org.springframework.stereotype.Repository;

import com.itsitio.dbimporter.dao.DbInsertDao;


@Repository
public class DbInsertDaoImpl extends JdbcDaoSupport implements
			DbInsertDao{


	@Autowired
	public DbInsertDaoImpl(DriverManagerDataSource dataSource) {
		super.setDataSource(dataSource);
	}

	@Override
	public void ejecutarInsert(String sql, Object[] parametros) {
		getJdbcTemplate().update(sql, parametros);
	}


}
